def get_cctx_xulie_event_avax_source(data_dict):
    # 事件字典数据
    Lock_event = {}
    Deposit_event = {}

    # 获取Lock_event数据
    Lock_event["tx_s"] = data_dict["source_chain_data"]["id"]
    Lock_event["sc_s"] = data_dict["source_chain_data"]["to"][0]["id"]
    Lock_event["asset_s"] = data_dict["cross_chain_data"]["input"]["asset"]
    Lock_event["amount_s"] = data_dict["cross_chain_data"]["input"]["amount"]
    Lock_event["to_s"] = data_dict["source_chain_data"]["operations"][1]["to"]["id"]


    Deposit_event["tx_s"] = data_dict["source_chain_data"]["id"]
    Deposit_event["sc_s"] = data_dict["source_chain_data"]["to"][0]["id"]
    Deposit_event["asset_s"] = data_dict["cross_chain_data"]["input"]["asset"]
    Deposit_event["amount_s"] = data_dict["cross_chain_data"]["input"]["amount"]
    Deposit_event["ID_d"] = data_dict["cross_chain_data"]["output"]["chain"]
    Deposit_event["asset_d"] = data_dict["cross_chain_data"]["output"]["asset"]
    Deposit_event["to_d"] = data_dict["cross_chain_data"]["outbounds"][1]["to"]

    return Lock_event,Deposit_event


def get_cctx_xulie_event_avax_target(data_dict):
    # 事件字典数据
    Unlock_event = {}

    Unlock_event["tx_d"] = data_dict["target_chain_data"]["id"]
    Unlock_event["sc_d"] = data_dict["target_chain_data"]["to"][0]["id"]
    Unlock_event["asset_d"] = data_dict["cross_chain_data"]["output"]["asset"]
    Unlock_event["amount_d"] = data_dict["cross_chain_data"]["outbounds"][1]["amount"]
    Unlock_event["to_d"] = data_dict["cross_chain_data"]["outbounds"][1]["to"]

    return Unlock_event